org.neo4j.graphdb.traversal
Interface PruneEvaluator


public interface PruneEvaluator

An evaluator which can "cut off" relationships so that they will not be traversed in the ongoing traversal. For any given position a prune evaluator can decide whether or not to prune whatever is beyond (i.e. after) that position or not.


Field Summary
static PruneEvaluator NONE
          Default PruneEvaluator, does not prune any parts of the traversal.
 
Method Summary
 boolean pruneAfter(Path position)
          Decides whether or not to prune after position.
 

Field Detail

NONE

static final PruneEvaluator NONE
Default PruneEvaluator, does not prune any parts of the traversal.

Method Detail

pruneAfter

boolean pruneAfter(Path position)
Decides whether or not to prune after position. If true is returned the position won't be expanded and traversals won't be made beyond that position.

Parameters:
position - the position to decide whether or not to prune after.
Returns:
whether or not to prune after position.


Copyright © 2010 Neo4j. All Rights Reserved.